package com.es.config;


import com.es.bean.StudentHelper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan
public class EsConfiguration {

    @Bean(name="studentHelper", initMethod = "init" , destroyMethod = "destroy")
    public StudentHelper getStudentHelper(){
        return new StudentHelper();
    }
}
